using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Cache
{
  public interface ITokenCache
  {
    string CreateToken(string userId);
    Task SetTokenCacheAsync(string token, string userid,TimeSpan timeSpan);
    Task<string> GetTokenCacheAsync(string token);
    Task RemoveAsync(string token);
    Task RemoveAsync(List<string> tokens);
  }
}
